{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">商品管理</li>
			<li class="">
				<a href="{:url('goods/add')}">添加商品</a>
			</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<table class="layui-table">
					<thead>
						<tr>
							<th>商品名称</th>
							<th>商品状态</th>
							<th>价格</th>
							<th>数量</th>
							<th>认筹开始时间</th>
							<th>认筹结束时间</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
						{foreach name="list" item="vo"}
						<tr>
							<td><img src="{$vo.thumb}" style="height: 80px;width: 80px;" /> &nbsp;&nbsp;{$vo.name}
							</td>
							<td>{if $vo.status==1}认筹{else/}发行{/if}</td>
							<td>{$vo.price}</td>
							<td>{$vo.stock}</td>
							<td>{$vo.add_time}</td>
							<td>{$vo.end_time}</td>	
							<td>
								<a href="{:url('index',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-small">编辑</a>
							</td>
						</tr>
						{/foreach}
					</tbody>
				</table>
				<!--分页-->
				{$list->render()}
			</div>
		</div>
	</div>
</div>
{/block}